import Mock from 'mockjs'

import banner from './banner.json'

import floor from './floor.json'

import cart from './cart.json'

Mock.mock('/mock/banner', {
  code: 200,
  message: '成功',
  ok: true,
  data: banner
})

Mock.mock('/mock/floor', {
  code: 200,
  message: '成功',
  ok: true,
  data: floor
})

// 获取购物车数据
Mock.mock('/mock/api/cart/cartList', {
  code: 200,
  message: '成功',
  ok: true,
  data: cart
})
